# Molecule managed

{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}


{% if item.image == 'idealista/jdk:8u382-bullseye-temurin-jdk' %}
RUN if [ $(command -v apt-get) ]; then apt-get update  && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates systemd systemd-sysv && apt-get clean ; fi
{% elif item.image == 'idealista/jdk:8u382-buster-temurin-jdk' %}
RUN if [ $(command -v apt-get) ]; then apt-get update --allow-releaseinfo-change && apt-get upgrade -y && apt-get install -y python3 sudo bash ca-certificates systemd systemd-sysv && apt-get clean ; fi
{% else %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get upgrade -y && apt-get install -y python sudo bash ca-certificates systemd systemd-sysv && apt-get clean; fi
{% endif %}